import openpyxl
from openpyxl.workbook import Workbook
from openpyxl.worksheet.worksheet import Worksheet


class DoF():
    def doExecl(self,f,sn,minr,maxr,minc,maxc):
        wk: Workbook = openpyxl.load_workbook(f)
        st: Worksheet = wk[sn]
        b = st.iter_rows(minr,maxr,minc,maxc,values_only=True)
        l = [i for i in b]
        return l